<?php
/**
 * Product Category components
 *
 * No redirection nor database manipulation ( insert, update, delete ) here
 */
class productCategoryComponents extends myFrontModuleComponents {

    public function executeList() {
        $query = $this->getListQuery()
                ->select('name');
        $this->treeObject = Doctrine_Core::getTable('productCategory')->getTree();
        $this->treeObject->setBaseQuery($query);
    }

    public function executeShow() {
        $query = $this->getShowQuery();

        $this->productCategory = $this->getRecord($query);
    }


}
